﻿using DTcms.Common;
using System.Data;
using Model = DTcms.Model;
using BLL = DTcms.BLL;
using DTcms.Web.Mvc.UI;

namespace System.Web.Mvc.Html
{
    public static class HtmlHelperTags
    {
        public static BaseController _base = new BaseController();

        /// <summary>
        /// 获取tag名
        /// </summary>
        /// <returns>DataTable</returns>
        public static string get_article_tags_title(this HtmlHelper htmlHelper, int id)
        {
            return _base.get_article_tags_title(id);
        }

        /// <summary>
        /// 文章Tags标签列表
        /// </summary>
        /// <param name="top">显示条数</param>
        /// <param name="strwhere">查询条件</param>
        /// <returns>DataTable</returns>
        public static DataTable get_article_tags(this HtmlHelper htmlHelper, int top, string strwhere)
        {
            return _base.get_article_tags(top, strwhere);
        }

        /// <summary>
        /// 文章Tags标签列表
        /// </summary>
        /// <param name="top">显示条数</param>
        /// <param name="strwhere">查询条件</param>
        /// <returns>DataTable</returns>
        public static DataTable get_article_tags(this HtmlHelper htmlHelper, int top, string strwhere, string filedOrder)
        {
            return _base.get_article_tags(top, strwhere, filedOrder);
        }

        /// <summary>
        /// 查询数据
        /// </summary>
        public static DataTable get_tags_list(this HtmlHelper htmlHelper, Model.sites site, int _tags_id, int _page, int _pagesize, out int _totalcount)
        {
            return _base.get_tags_list(site, _tags_id, _page, _pagesize, out _totalcount);
        }
    }
}
